package com.jinlia.show.modules.system.model.forms;

import com.jinlia.show.modules.base.system.entity.GoodsAttr;
import com.jinlia.show.modules.base.system.entity.GoodsAttrValue;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class GoodsAttrForm{
    /**
     * 商品id
     */
    private Long goodsId;
    /**
     * 库存量单位名称
     */
    private Long attrId;
    private String attrName;
    /**
     * 属性值名称
     */
    private Long attrValueId;
    private String attrValueName;

    /**
     * 价格
     */
    private BigDecimal attrValuePrice;
    /**
     * 图片
     */
    private String attrValuePics;

    public GoodsAttr getGoodsAttr() {
        GoodsAttr goodsAttr = new GoodsAttr();
        goodsAttr.setGoodsId(this.getGoodsId());
        goodsAttr.setAttrName(this.getAttrName());
        goodsAttr.setId(this.getAttrId());
        return goodsAttr;
    }
    public GoodsAttrValue getGoodsAttrValue() {
        GoodsAttrValue goodsAttrValue = new GoodsAttrValue();
        goodsAttrValue.setId(this.getAttrValueId());
        goodsAttrValue.setAttrId(this.getAttrId());
        goodsAttrValue.setAttrValueName(this.getAttrValueName());
        goodsAttrValue.setAttrValuePrice(this.getAttrValuePrice());
        goodsAttrValue.setAttrValuePics(this.getAttrValuePics());
        return goodsAttrValue;
    }
}
